package com.genius.adminmanager.group.controller;


import javax.servlet.http.HttpSession;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.ResponseBody;

import com.alibaba.fastjson.JSONObject;
import com.genius.adminmanager.group.service.GroupService;
import com.genius.adminmanager.other.entity.ResponseJson;


@Controller
public class GroupDelteController {
	@Autowired
	@Qualifier("groupDeleteService")
    private GroupService groupDeleteService;
	
	
	@PostMapping("/adminmanager/group/batchdel")
	@ResponseBody
	public JSONObject batchdel(@RequestBody JSONObject json, HttpSession session){
		JSONObject response = new JSONObject();
    	response.put(ResponseJson.code, 0);
    	response = groupDeleteService.batchdel(json, response);
		return response;
	}
}
